package com.snowy.hidden.constant;

import com.snowy.hidden.exception.TxzhException;

public enum AuthErrorENU implements TxzhException {
    INTF_ERROR("UA001", "接口异常"),
    SMS_ERR("UA002", "短信验证码错误"),
    LOGIN_DISABLE_ERR("UA003", "登录失败，当前用户已禁用"),
    NO_PHONE_ERR("UA004", "手机号不能为空"),
    NO_LOGIN_SMS_CODE_ERR("UA005", "验证码不能为空"),
    NO_USER_SOURCE_ERR("UA006", "用户来源不能为空"),
    NO_THIRD_CODE_ERR("UA007", "授权码不能为空"),
    USER_ERR("UA008", "未取到用户信息"),
    NO_ASSTOKEN("UA009", "未取到用户信息，TOKEN失效"),
    NO_THIRD_OPEN_ID("UA010", "未取到三方openid"),
    NO_PHONE_USERINFO("UA011", "未取找到手机信息"),
    LOGIN_TIMEOUT_ERR("UA012", "登录失效"),
    VALIDATE_ERR("UA013", "权限认证失败"),
    NO_USER_INFO("UA014", "用户名或密码错误"),
    PARAM_ERROR("UA015", "接口参数错误"),
    LOGIN_PHONE_ERR("UA016", "登录失败，未找到手机号"),


    ACCOUNT_PWD_EMPTY("UA017", "账号或密码为空"),


    /**
     * 账号密码错误
     */
    ACCOUNT_PWD_ERROR("UA018", "账号或密码错误"),

    /**
     * 单位已停用
     */
    ORG_STOP("UA019", "单位已停用"),

    /**
     * 单位不存在
     */
    ORG_ERROR("UA020", "单位不存在"),

    ENP_ERROR("UA021", "企业已禁用或待审核中"),

    ENP_TYPE_ERROR("UA022", "企业类型错误"),

    ACCOUNT_ERROR("UA023", "用户失效"),

    ROLE_ERR("UA024", "当前人员权限拒绝登录"),

    /**
     * 密码解密失败，请检查前端公钥
     */
    PWD_DECRYPT_ERROR("UA025","密码解密失败，请检查前端公钥"),
    ;

    private String code;

    private String msg;

    AuthErrorENU(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
